﻿<%@ WebHandler Language="C#" Class="RefDayOrder" %>

using System;
using System.Web;
using Dos.Model;

public class RefDayOrder : IHttpHandler
{

    public void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "text/plain";
        HttpRequest req = context.Request;
        if (!string.IsNullOrEmpty(req["oid"]))
        {
            temple_Days o = ManageBase<temple_Days>.Get(int.Parse(req["oid"]));
            o.State = 1;
            ManageBase.Set(o);
            context.Response.Write(1);
        }
    }

    public bool IsReusable
    {
        get { return false; }
    }

}